package server.service;

import server.model.dto.TransDto;

import server.model.entity.Apply;
import server.model.entity.BlanceRecord;
import server.model.entity.UserBlance;
import server.model.entity.Users;

import java.math.BigDecimal;

/**
 * 创建人:    xvzhe
 * 创建时间:
 * 修改时间:
 * 版本:      v1.0
 */
public interface UserBlanceService {
    /*
     * 创建钱包
     * @Author: xvzhe
     * @Version: 1.0
     */
    Boolean createBlance(Users users);

    /*
     * 充值
     * @Author: xvzhe
     * @Version: 1.0
     */
    Boolean insBlance(String userId, BigDecimal money, UserBlance.Type type, BlanceRecord.Type bType, String... log);

    /*
     * 转账
     * @Author: xvzhe
     * @Version: 1.0
     */
    Boolean trans(String userId, TransDto transDto);
}
